package com.ali.aliwebsite.mapper;

import com.ali.aliwebsite.entity.Video;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface VideoMapper {
    //查询视频列表
    @Select("select * from video")
    List<Video> selectAll();

    @Update("UPDATE video SET url = #{url} WHERE id = #{id}")
    public int update(@Param("url") String url, @Param("id") int id);


}
